<?php 

class Model_IMoreNews extends Model{

	function __construct(){

	}

	function getIMoreNews($orderby="id desc",$page = 1, $size = 8){
		$where="status=1 and state=1";
		
		$param = array();
		$param['field'] = "";
		$param['where'] = $where;
		$param['order'] = $orderby; //"id asc"
		$param['group'] = "";
		$param['limit'] = "";
		$param['pagesize'] =  $size;
		$param['page'] = $page;
		$param['join'] = "";
		$param['on'] = "";
		$data = db_query_hash('news',$param,IMOREDB);
		return $data;
	}
}
	
?>